﻿using Domain.Entities.Tenants;
using System.ComponentModel;

namespace Domain.Entities.Loggers;

/// <summary>
/// 日志
/// </summary>
[Description("日志")]
public class Logger : IEntity<long>, ITenant
{
    public virtual long Id { get; set; }
    public virtual long? UserId { get; set; }
    public virtual User? User { get; set; }
    public virtual DateTimeOffset? Timestamp { get; set; }
    public virtual long? TimestampLong { get; set; }
    public virtual string? Level { get; set; }
    public virtual string? MessageTemplate { get; set; }
    public virtual string? Message { get; set; }
    public virtual string? Exception { get; set; }
    public virtual string? Properties { get; set; }
    public virtual Tenant? Tenant { get; set; }
    public virtual string? TenantId { get; set; } = null;
}
